import { useFetch } from "@/http/useFetch";

export const fetchAnalysis = async function(data?: any) {
  return await useFetch({
    data,
    json: true,
    config: {
      method: "POST"
    },
    url: "/sys/dataAnalysis"
  });
};
export const fetchAnalysisQuestion = async function(data?: any) {
  return await useFetch({
    data,
    json: true,
    config: {
      method: "POST"
    },
    url: "/sys/getQuestionListByTypeId"
  });
};

